#!/usr/bin/env node
const Koa = require("koa")
const bodyparser = require("koa-bodyparser")
const cors = require("koa-cors")
const router = require("./router")
const app = new Koa()


app.use(bodyparser())
app.use(cors())
router(app)
app.listen(8090, () => {
    console.log('8090服务器启动')
})